name='h5-access.log'

echo "ip前10.................."
echo ""
cat /root/v1/logs/$name |cut -d ' ' -f 1 | sort |uniq -c | sort -nr | awk '{print $0 }' | head -n 10
echo ""
echo ""
echo "ip数量.................."
echo ""
cat /root/v1/logs/$name | awk '{print $1}' | sort -k1 -r | uniq | wc -l
echo ""
echo ""
echo "当天pv.................."
echo ""
cat /root/v1/logs/$name |  sed -n /`date "+%d\/%b\/%Y"`/p |wc -l
echo ""
echo ""
echo "全部pv.................."
echo ""
cat /root/v1/logs/$name | wc -l
echo ""
echo ""